<?php
header('Content-type: text/xml;charset=utf-8');  
include_once('global.php');
$sql="SELECT  `keyword` ,  `id` ,  `title` ,  `date_time` FROM  `p_newsbase` where cid=30 order by id DESC limit 90";
 $query=$db->query($sql);
 echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
	echo "<lostmessage>";
 while($row=$db->fetch_array($query)){
 	echo "<lost id=\"".$row[id]."\">";
			echo "<title>$row[title]</title>";
			echo "<keyword>$row[keyword]</keyword>";
			echo "<date_time>$row[date_time]</date_time>";
			echo "</lost>";
 }
 echo "</lostmessage>";
?>